home *** CD-ROM | disk | FTP | other *** search
- on setUpThumb
- global gSliderStart, gSliderLength, gThumbSprite
- global gPcVidSprite
- global gTimeTot
-
- -- in case this is a second time through this movie, when the thumb may not
- -- have been left at the beginning, put it there
- set the locH of sprite gThumbSprite = gSliderStart
-
- set timeTotStr = trackStopTime (sprite gPcVidSprite, 1)
-
- set gTimeTot = value(timeTotStr)
-
- end setUpThumb
-
- ------------------------------------------------------------------------
- -- idle handler for thumb position
- on moveThumb
- global gSliderStart, gSliderLength, gThumbSprite
- global gTimeTot
- global gPcVidSprite
-
- set timeNowStr = the movieTime of sprite gPcVidSprite
-
- set timeNow = value(timeNowStr)
-
- -- provided we have passed the init section which sets gTimeTot, move the sprite
- if (gTimeTot) then
- set offsetBh = ((timeNow * gSliderLength) / gTimeTot)
- set the locH of sprite gThumbSprite = gSliderStart + offsetBh
-
- --set the locH of sprite 46 = the mouseH
- --set the locV of sprite 46 = the mouseV
-
- updateStage
-
- end if
-
- end moveThumb
-
-